package org.core.blog.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.core.blog.mapper.CategoryMapper;
import org.core.blog.pojo.Category;
import org.core.blog.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getList() {
        log.info("查询所有分类");
        return categoryMapper.findAll();
    }
}
